home *** CD-ROM | disk | FTP | other *** search
/ 130 MIDI Tool Box / 130 MIDI Tool Box.iso / midimod1 / textwin.h < prev   
Text File  |  1993-04-10  |  1KB  |  46 lines

  1. /*
  2.  * TEXTWIN.H - Text-windowing system header
  3.  * Turbo C 2.0
  4.  *
  5.  * Author: Andrew Scott (Adrenalin Software)
  6.  *
  7.  * Date: 14/3/1993 ver 0.1
  8.  */
  9.  
  10. extern void MainWindow(char *title, int n, ...);
  11. /* Post: Screen is set up with a nice title and n menus */
  12.  
  13. extern void SetMenu(int menu, int n, ...);
  14. /* Post: n commands has been set in menu #menu (0 = 1st) */
  15.  
  16. extern int Choice();
  17. /*
  18.  * Returns: a function reference number corresponding to a chosen command,
  19.  *   but returns -1 on an error.
  20.  */
  21.  
  22. extern int ScrollChoice(char *title, const char **sp, int w);
  23. /*
  24.  * Returns: The offset of the string from s which is chosen, -1 on none
  25.  *    s points to the start of a list of strings, max length w, NULL term.
  26.  */
  27.  
  28. extern void ClearWin();
  29. /* Post: Area below command and title bars is clear */
  30.  
  31. extern void DrawBox(const char **sp);
  32. /* Post: The NULL-terminated array of strings pointed to by sp is printed */
  33.  
  34. extern char InfoBox(const char **sp);
  35. /*
  36.  * Returns: The key pressed after the NULL-terminated array of strings
  37.  *    pointed to by sp is printed.
  38.  */
  39.  
  40. extern char *DialogBox(const char **sp, char *def);
  41. /*
  42.  * Returns: The string entered (or def if none entered), after printing
  43.  *    box filled with NULL-terminated strings sp.
  44.  */
  45.  
  46.